home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / demo / pwrtcp11.exe / POWERUDP.HP_ / POWERUDP.bin
Text File  |  1994-12-02  |  2KB  |  52 lines

  1. //***************************************************************************
  2. //
  3. //  Module: PowerUdp.hpp
  4. //
  5. //  Purpose:
  6. //     Declares CPowerUdp class
  7. //             
  8. //***************************************************************************
  9. //
  10. //  Written by Dart Communication Application Programming Group.
  11. //  Copyright (c) 1994 Dart Communications.  All Rights Reserved.
  12. //
  13. //***************************************************************************
  14.  
  15. // PowerTCP.h should be included before this file
  16.  
  17. // typedefs used here...
  18.  
  19. // Classes used...
  20. class CUdp;
  21.  
  22. //
  23. // CPowerUdp
  24. // Defines the functions required to provide a TCP stream to parent
  25. //
  26. class CPowerUdp
  27. {
  28. friend class CUdp;
  29. private:
  30.     CUdp &Udp; // WINSOCK calls, etc here 
  31. protected:
  32.     // assessor functions from Udp follow...
  33.     virtual void ConnectEvent (LPCSTR LocalDotAddr, WORD LocalPort, LPCSTR LocalName,
  34.         WORD MaxByteCnt); 
  35.      virtual void ExceptionEvent(PT_EXCEPTION ErrorCode, LPCSTR ErrorDesc, DWORD DataTag)=0;
  36.     virtual void RecvEvent (LPVOID Data, size_t ByteCnt, LPCSTR RemoteDotAddr,
  37.         WORD RemotePort);
  38.     virtual void SendEvent (DWORD DataTag);
  39.      virtual PT_TYPE GetType (void);
  40. public:
  41.     BOOL Close (BOOL Abort);
  42.     BOOL Connect (LPCSTR OemLicense, PT_FLAGS Flags, LPCSTR LocalDotAddr, WORD LocalPort);
  43.     BOOL Recv (void);
  44.     BOOL Send (LPCSTR RemoteHost, WORD RemotePort, 
  45.         LPVOID Data, size_t ByteCnt, DWORD DataTag);
  46.     PT_STATE State (void);
  47.     CPowerUdp (HINSTANCE);
  48.     ~CPowerUdp (void);
  49.     int operator = (CPowerUdp &);
  50. };
  51.  
  52.